package com.lagou.worker.controller.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @ClassName MailService
 * @Description TODO
 * @Author xsq
 * @Date 2020/7/28 17:21
 **/
@FeignClient(value = "service-email",path = "email")
public interface MailService {


    /**
     * 把验证码发送到邮箱
     * @param email
     * @param code
     * @return
     */
    @GetMapping("/sendEmail/{email}/{code}")
     ResponseEntity<Boolean> sendEmail(@PathVariable("email") String email, @PathVariable("code") String code);

}
